Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update pytests dependency #511

Closed
wants to merge 1 commit into from
Closed

Conversation

Martin-Molinero
Copy link
Member

@Martin-Molinero Martin-Molinero commented Oct 24, 2024

  • Windows 3.12 CI started failing with
2024-10-24T16:40:49.8236249Z tests\components\util\test_xml_manager.py ..
2024-10-24T16:40:49.8728500Z tests\models\test_api.py ......
2024-10-24T16:40:49.9050766Z tests\models\test_config.py ....
2024-10-24T16:40:50.3394210Z tests\models\test_data.py ....................................................
2024-10-24T16:40:50.3993135Z tests\models\test_docker.py .......
2024-10-24T16:40:50.4258860Z tests\models\test_modules.py ...
2024-10-24T16:40:50.5122010Z tests\models\test_options.py .........
2024-10-24T16:40:50.5122581Z 
2024-10-24T16:40:50.5122778Z =================================== ERRORS ====================================
2024-10-24T16:40:50.5124488Z _________________ ERROR at setup of test_build_compiles_lean __________________
2024-10-24T16:40:50.5124963Z 
2024-10-24T16:40:50.5126287Z filename = 'C:\\hostedtoolcache\\windows\\Python\\3.12.7\\x64\\Scripts\\pytest.exe\\__main__.py'
2024-10-24T16:40:50.5126896Z module_globals = None
2024-10-24T16:40:50.5127127Z 
2024-10-24T16:40:50.5127299Z     def updatecache(filename, module_globals=None):
2024-10-24T16:40:50.5127797Z         """Update a cache entry and return its list of lines.
2024-10-24T16:40:50.5128429Z         If something's wrong, print a message, discard the cache entry,
2024-10-24T16:40:50.5128897Z         and return an empty list."""
2024-10-24T16:40:50.5129236Z     
2024-10-24T16:40:50.5129486Z         if filename in cache:
2024-10-24T16:40:50.5129811Z             if len(cache[filename]) != 1:
2024-10-24T16:40:50.5130200Z                 cache.pop(filename, None)
2024-10-24T16:40:50.5130844Z         if not filename or (filename.startswith('<') and filename.endswith('>')):
2024-10-24T16:40:50.5131336Z             return []
2024-10-24T16:40:50.5131609Z     
2024-10-24T16:40:50.5131851Z         fullname = filename
2024-10-24T16:40:50.5132129Z         try:
2024-10-24T16:40:50.5132400Z >           stat = os.stat(fullname)
2024-10-24T16:40:50.5133433Z E           FileNotFoundError: [WinError 3] The system cannot find the path specified: 'C:\\hostedtoolcache\\windows\\Python\\3.12.7\\x64\\Scripts\\pytest.exe\\__main__.py'
2024-10-24T16:40:50.5134201Z 
2024-10-24T16:40:50.5134521Z C:\hostedtoolcache\windows\Python\3.12.7\x64\Lib\linecache.py:93: FileNotFoundError
2024-10-24T16:40:50.5134993Z 
2024-10-24T16:40:50.5135235Z During handling of the above exception, another exception occurred:
2024-10-24T16:40:50.5135629Z 
2024-10-24T16:40:50.5136288Z filename = 'C:\\hostedtoolcache\\windows\\Python\\3.12.7\\x64\\Scripts\\pytest.exe\\__main__.py'
2024-10-24T16:40:50.5137415Z module_globals = None
2024-10-24T16:40:50.5137741Z 
2024-10-24T16:40:50.5138052Z     def updatecache(filename, module_globals=None):
2024-10-24T16:40:50.5138937Z         """Update a cache entry and return its list of lines.
2024-10-24T16:40:50.5140353Z         If something's wrong, print a message, discard the cache entry,
2024-10-24T16:40:50.5141209Z         and return an empty list."""
2024-10-24T16:40:50.5142064Z     
2024-10-24T16:40:50.5142505Z         if filename in cache:
2024-10-24T16:40:50.5143149Z             if len(cache[filename]) != 1:
2024-10-24T16:40:50.5143836Z                 cache.pop(filename, None)
2024-10-24T16:40:50.5144945Z         if not filename or (filename.startswith('<') and filename.endswith('>')):
2024-10-24T16:40:50.5145878Z             return []
2024-10-24T16:40:50.5146311Z     
2024-10-24T16:40:50.5146733Z         fullname = filename
2024-10-24T16:40:50.5147264Z         try:
2024-10-24T16:40:50.5147704Z >           stat = os.stat(fullname)
2024-10-24T16:40:50.5149577Z E           FileNotFoundError: [WinError 3] The system cannot find the path specified: 'C:\\hostedtoolcache\\windows\\Python\\3.12.7\\x64\\Scripts\\pytest.exe\\__main__.py'
2024-10-24T16:40:50.5150470Z 
2024-10-24T16:40:50.5150904Z C:\hostedtoolcache\windows\Python\3.12.7\x64\Lib\linecache.py:93: FileNotFoundError
2024-10-24T16:40:50.5151447Z 
2024-10-24T16:40:50.5151703Z During handling of the above exception, another exception occurred:
2024-10-24T16:40:50.5152090Z 
2024-10-24T16:40:50.5152559Z filename = 'C:\\hostedtoolcache\\windows\\Python\\3.12.7\\x64\\Scripts\\pytest.exe\\__main__.py'
2024-10-24T16:40:50.5153175Z module_globals = None
2024-10-24T16:40:50.5153355Z 
2024-10-24T16:40:50.5153546Z     def updatecache(filename, module_globals=None):
2024-10-24T16:40:50.5154008Z         """Update a cache entry and return its list of lines.
2024-10-24T16:40:50.5154630Z         If something's wrong, print a message, discard the cache entry,
2024-10-24T16:40:50.5155125Z         and return an empty list."""
2024-10-24T16:40:50.5155434Z     
2024-10-24T16:40:50.5155842Z         if filename in cache:
2024-10-24T16:40:50.5156201Z             if len(cache[filename]) != 1:
2024-10-24T16:40:50.5156561Z                 cache.pop(filename, None)
2024-10-24T16:40:50.5157156Z         if not filename or (filename.startswith('<') and filename.endswith('>')):
2024-10-24T16:40:50.5157668Z             return []
2024-10-24T16:40:50.5157914Z     
2024-10-24T16:40:50.5158160Z         fullname = filename
2024-10-24T16:40:50.5158462Z         try:
2024-10-24T16:40:50.5158708Z >           stat = os.stat(fullname)
2024-10-24T16:40:50.5159721Z E           FileNotFoundError: [WinError 3] The system cannot find the path specified: 'C:\\hostedtoolcache\\windows\\Python\\3.12.7\\x64\\Scripts\\pytest.exe\\__main__.py'
2024-10-24T16:40:50.5160471Z 
2024-10-24T16:40:50.5160865Z C:\hostedtoolcache\windows\Python\3.12.7\x64\Lib\linecache.py:93: FileNotFoundError

@Martin-Molinero Martin-Molinero deleted the bug-update-pytests-deps branch October 28, 2024 14:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant